package cn.tedu.hotel.serve.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class HotelRoomInfoDTO implements Serializable {
    @NotNull(message = "酒店名字不能为空")
    @NotEmpty(message = "酒店名字不能为空")
    private String hotelName;

    @NotNull(message = "酒店名字不能为空")
    @Range(min = 1,message = "请提交有效值")
    private Long hotelId;

    @NotNull(message = "房间类型不能为空")
    @NotEmpty(message = "房间类型不能为空")
    private String roomName;


    @Range(min = 1,message = "请提交有效值")
    private Long roomId;

    @NotNull(message = "房间数量不能为空")
    @Range(min = 1,message = "请提交有效值")
    private Integer number;

    @NotNull(message = "基本价格不能为空")
    @Range(min = 1,message = "请提交有效值")
    private BigDecimal price;
}
